package com.lagou.lagouserviceemail;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.core.env.ConfigurableEnvironment;
import org.springframework.mail.javamail.JavaMailSender;
import org.springframework.mail.javamail.JavaMailSenderImpl;

/**
 * 发送邮件维服务
 */
@EnableDiscoveryClient
@SpringBootApplication
public class LagouServiceEmailApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(LagouServiceEmailApplication.class, args);
        ConfigurableEnvironment environment = context.getEnvironment();
        //测试获取配置
//        String test = environment.getProperty("test");
//        System.out.println("mail===="+ environment.getProperty("spring.mail.host"));
//        System.out.println(test+"=======");
    }


}
